<template>
  <div>
    <!--面包屑导航-->
    <crumbs></crumbs>
    <!--表格-->
    <el-row>
      <el-col :span="24">
        <!--表格-->
        <right-table :rightList="rightsList"></right-table>
      </el-col>
    </el-row>

  </div>
</template>

<script>
  import Crumbs from './navigation/Crumbs'
  import RightTable from './rightTable/RightTable'
  export default {
    name: "rights",
    components: {
      Crumbs,
      RightTable
    },
    data() {
      return {
        rightsList: []
      }
    },
    created() {
      this.$http.get('rights/list').then(result => {
        if (result.data.meta.status !== 200) return this.$message.error("获取权限列表失败!")
        this.rightsList = result.data.data
      })
    }
  }
</script>

<style scoped>

</style>